<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="记录状态" prop="a000">
        <el-input
          v-model="queryParams.a000"
          placeholder="请输入记录状态"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="记录识别符" prop="a001">
        <el-input
          v-model="queryParams.a001"
          placeholder="请输入记录识别符"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="记录日期" prop="a003">
        <el-input
          v-model="queryParams.a003"
          placeholder="请输入记录日期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="ISBN" prop="a010">
        <el-input
          v-model="queryParams.a010"
          placeholder="请输入ISBN"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="ISNN" prop="a011">
        <el-input
          v-model="queryParams.a011"
          placeholder="请输入ISNN"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="发布日期" prop="a101">
        <el-input
          v-model="queryParams.a101"
          placeholder="请输入发布日期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="发布机构代码" prop="a104">
        <el-input
          v-model="queryParams.a104"
          placeholder="请输入发布机构代码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="版本" prop="a103">
        <el-input
          v-model="queryParams.a103"
          placeholder="请输入版本"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="标准状态" prop="a200">
        <el-input
          v-model="queryParams.a200"
          placeholder="请输入标准状态"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="有效区域" prop="a203">
        <el-input
          v-model="queryParams.a203"
          placeholder="请输入有效区域"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="实施或试行日期" prop="a205">
        <el-input
          v-model="queryParams.a205"
          placeholder="请输入实施或试行日期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="废止日期" prop="a206">
        <el-input
          v-model="queryParams.a206"
          placeholder="请输入废止日期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="确认日期" prop="a207">
        <el-input
          v-model="queryParams.a207"
          placeholder="请输入确认日期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="原分类号" prop="a208">
        <el-input
          v-model="queryParams.a208"
          placeholder="请输入原分类号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="截止日期" prop="a210">
        <el-input
          v-model="queryParams.a210"
          placeholder="请输入截止日期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="正文语种" prop="a300">
        <el-input
          v-model="queryParams.a300"
          placeholder="请输入正文语种"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="稽核项" prop="a305">
        <el-input
          v-model="queryParams.a305"
          placeholder="请输入稽核项"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="译文" prop="a309">
        <el-input
          v-model="queryParams.a309"
          placeholder="请输入译文"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="价格" prop="a310">
        <el-input
          v-model="queryParams.a310"
          placeholder="请输入价格"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="其他载体" prop="a311">
        <el-input
          v-model="queryParams.a311"
          placeholder="请输入其他载体"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="修改件" prop="a820">
        <el-input
          v-model="queryParams.a820"
          placeholder="请输入修改件"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="被修改件" prop="a821">
        <el-input
          v-model="queryParams.a821"
          placeholder="请输入被修改件"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="补充件" prop="a823">
        <el-input
          v-model="queryParams.a823"
          placeholder="请输入补充件"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="被补充件" prop="a824">
        <el-input
          v-model="queryParams.a824"
          placeholder="请输入被补充件"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="索取号" prop="a845">
        <el-input
          v-model="queryParams.a845"
          placeholder="请输入索取号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="馆藏标志" prop="a846">
        <el-input
          v-model="queryParams.a846"
          placeholder="请输入馆藏标志"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="排序码" prop="a847">
        <el-input
          v-model="queryParams.a847"
          placeholder="请输入排序码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="标准类型" prop="a850">
        <el-input
          v-model="queryParams.a850"
          placeholder="请输入标准类型"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="文献类型" prop="a860">
        <el-input
          v-model="queryParams.a860"
          placeholder="请输入文献类型"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="卷期号" prop="a861">
        <el-input
          v-model="queryParams.a861"
          placeholder="请输入卷期号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="文献代号" prop="a863">
        <el-input
          v-model="queryParams.a863"
          placeholder="请输入文献代号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="出版周期" prop="a864">
        <el-input
          v-model="queryParams.a864"
          placeholder="请输入出版周期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="出版地" prop="a865">
        <el-input
          v-model="queryParams.a865"
          placeholder="请输入出版地"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="密级" prop="a866">
        <el-input
          v-model="queryParams.a866"
          placeholder="请输入密级"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="提出单位" prop="a870">
        <el-input
          v-model="queryParams.a870"
          placeholder="请输入提出单位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="归口单位" prop="a871">
        <el-input
          v-model="queryParams.a871"
          placeholder="请输入归口单位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="国别" prop="a885">
        <el-input
          v-model="queryParams.a885"
          placeholder="请输入国别"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="标引依据" prop="a886">
        <el-input
          v-model="queryParams.a886"
          placeholder="请输入标引依据"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="更新批号" prop="a890">
        <el-input
          v-model="queryParams.a890"
          placeholder="请输入更新批号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="标准历史" prop="a891">
        <el-input
          v-model="queryParams.a891"
          placeholder="请输入标准历史"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="参建单位" prop="a892">
        <el-input
          v-model="queryParams.a892"
          placeholder="请输入参建单位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="电子文件名称" prop="a893">
        <el-input
          v-model="queryParams.a893"
          placeholder="请输入电子文件名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="预留字段1" prop="reserveA">
        <el-input
          v-model="queryParams.reserveA"
          placeholder="请输入预留字段1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="预留字段2" prop="reserveB">
        <el-input
          v-model="queryParams.reserveB"
          placeholder="请输入预留字段2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="预留字段3" prop="reserveC">
        <el-input
          v-model="queryParams.reserveC"
          placeholder="请输入预留字段3"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="预留字段4" prop="reserveD">
        <el-input
          v-model="queryParams.reserveD"
          placeholder="请输入预留字段4"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="预留字段5" prop="reserveE">
        <el-input
          v-model="queryParams.reserveE"
          placeholder="请输入预留字段5"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="文件地址" prop="filePath">
        <el-input
          v-model="queryParams.filePath"
          placeholder="请输入文件地址"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="tableName">
        <el-input
          v-model="queryParams.tableName"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['system:standardNoes:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['system:standardNoes:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['system:standardNoes:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['system:standardNoes:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="standardNoesList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="主键" align="center" prop="id" />
      <el-table-column label="记录状态" align="center" prop="a000" />
      <el-table-column label="记录识别符" align="center" prop="a001" />
      <el-table-column label="记录日期" align="center" prop="a003" />
      <el-table-column label="ISBN" align="center" prop="a010" />
      <el-table-column label="ISNN" align="center" prop="a011" />
      <el-table-column label="标准号" align="center" prop="a100" />
      <el-table-column label="发布日期" align="center" prop="a101" />
      <el-table-column label="发布机构" align="center" prop="a102" />
      <el-table-column label="发布机构代码" align="center" prop="a104" />
      <el-table-column label="版本" align="center" prop="a103" />
      <el-table-column label="标准状态" align="center" prop="a200" />
      <el-table-column label="有效区域" align="center" prop="a203" />
      <el-table-column label="批准单位" align="center" prop="a204" />
      <el-table-column label="实施或试行日期" align="center" prop="a205" />
      <el-table-column label="废止日期" align="center" prop="a206" />
      <el-table-column label="确认日期" align="center" prop="a207" />
      <el-table-column label="原分类号" align="center" prop="a208" />
      <el-table-column label="起草单位" align="center" prop="a209" />
      <el-table-column label="截止日期" align="center" prop="a210" />
      <el-table-column label="中文标准名称" align="center" prop="a298" />
      <el-table-column label="正文语种" align="center" prop="a300" />
      <el-table-column label="原文标准名称" align="center" prop="a301" />
      <el-table-column label="英文标准名称" align="center" prop="a302" />
      <el-table-column label="出版单位" align="center" prop="a304" />
      <el-table-column label="稽核项" align="center" prop="a305" />
      <el-table-column label="译文" align="center" prop="a309" />
      <el-table-column label="价格" align="center" prop="a310" />
      <el-table-column label="其他载体" align="center" prop="a311" />
      <el-table-column label="中文文摘" align="center" prop="a330" />
      <el-table-column label="英文文摘" align="center" prop="a331" />
      <el-table-column label="英文主题词" align="center" prop="a390" />
      <el-table-column label="附注" align="center" prop="a409" />
      <el-table-column label="文献出处" align="center" prop="a448" />
      <el-table-column label="代替标准" align="center" prop="a461" />
      <el-table-column label="被代替标准" align="center" prop="a462" />
      <el-table-column label="引用文件" align="center" prop="a502" />
      <el-table-column label="相关法律" align="center" prop="a505" />
      <el-table-column label="一致性程度" align="center" prop="a800" />
      <el-table-column label="第二标准号" align="center" prop="a805" />
      <el-table-column label="前言" align="center" prop="a807" />
      <el-table-column label="引言" align="center" prop="a808" />
      <el-table-column label="修改件" align="center" prop="a820" />
      <el-table-column label="被修改件" align="center" prop="a821" />
      <el-table-column label="补充件" align="center" prop="a823" />
      <el-table-column label="被补充件" align="center" prop="a824" />
      <el-table-column label="中国标准分类号" align="center" prop="a825" />
      <el-table-column label="国际标准分类号" align="center" prop="a826" />
      <el-table-column label="中文主题词" align="center" prop="a835" />
      <el-table-column label="中文自由词" align="center" prop="a840" />
      <el-table-column label="原文主题词" align="center" prop="a837" />
      <el-table-column label="索取号" align="center" prop="a845" />
      <el-table-column label="馆藏标志" align="center" prop="a846" />
      <el-table-column label="排序码" align="center" prop="a847" />
      <el-table-column label="标准类型" align="center" prop="a850" />
      <el-table-column label="文献类型" align="center" prop="a860" />
      <el-table-column label="卷期号" align="center" prop="a861" />
      <el-table-column label="文献代号" align="center" prop="a863" />
      <el-table-column label="出版周期" align="center" prop="a864" />
      <el-table-column label="出版地" align="center" prop="a865" />
      <el-table-column label="密级" align="center" prop="a866" />
      <el-table-column label="提出单位" align="center" prop="a870" />
      <el-table-column label="归口单位" align="center" prop="a871" />
      <el-table-column label="国别" align="center" prop="a885" />
      <el-table-column label="标引依据" align="center" prop="a886" />
      <el-table-column label="更新批号" align="center" prop="a890" />
      <el-table-column label="标准历史" align="center" prop="a891" />
      <el-table-column label="参建单位" align="center" prop="a892" />
      <el-table-column label="电子文件名称" align="center" prop="a893" />
      <el-table-column label="文件路径" align="center" prop="a894" />
      <el-table-column label="起草人" align="center" prop="a895" />
      <el-table-column label="预留字段1" align="center" prop="reserveA" />
      <el-table-column label="预留字段2" align="center" prop="reserveB" />
      <el-table-column label="预留字段3" align="center" prop="reserveC" />
      <el-table-column label="预留字段4" align="center" prop="reserveD" />
      <el-table-column label="预留字段5" align="center" prop="reserveE" />
      <el-table-column label="文件地址" align="center" prop="filePath" />
      <el-table-column label="${comment}" align="center" prop="tableName" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['system:standardNoes:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['system:standardNoes:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    
    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改standardNoes对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="记录状态" prop="a000">
          <el-input v-model="form.a000" placeholder="请输入记录状态" />
        </el-form-item>
        <el-form-item label="记录识别符" prop="a001">
          <el-input v-model="form.a001" placeholder="请输入记录识别符" />
        </el-form-item>
        <el-form-item label="记录日期" prop="a003">
          <el-input v-model="form.a003" placeholder="请输入记录日期" />
        </el-form-item>
        <el-form-item label="ISBN" prop="a010">
          <el-input v-model="form.a010" placeholder="请输入ISBN" />
        </el-form-item>
        <el-form-item label="ISNN" prop="a011">
          <el-input v-model="form.a011" placeholder="请输入ISNN" />
        </el-form-item>
        <el-form-item label="标准号" prop="a100">
          <el-input v-model="form.a100" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="发布日期" prop="a101">
          <el-input v-model="form.a101" placeholder="请输入发布日期" />
        </el-form-item>
        <el-form-item label="发布机构" prop="a102">
          <el-input v-model="form.a102" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="发布机构代码" prop="a104">
          <el-input v-model="form.a104" placeholder="请输入发布机构代码" />
        </el-form-item>
        <el-form-item label="版本" prop="a103">
          <el-input v-model="form.a103" placeholder="请输入版本" />
        </el-form-item>
        <el-form-item label="标准状态" prop="a200">
          <el-input v-model="form.a200" placeholder="请输入标准状态" />
        </el-form-item>
        <el-form-item label="有效区域" prop="a203">
          <el-input v-model="form.a203" placeholder="请输入有效区域" />
        </el-form-item>
        <el-form-item label="批准单位" prop="a204">
          <el-input v-model="form.a204" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="实施或试行日期" prop="a205">
          <el-input v-model="form.a205" placeholder="请输入实施或试行日期" />
        </el-form-item>
        <el-form-item label="废止日期" prop="a206">
          <el-input v-model="form.a206" placeholder="请输入废止日期" />
        </el-form-item>
        <el-form-item label="确认日期" prop="a207">
          <el-input v-model="form.a207" placeholder="请输入确认日期" />
        </el-form-item>
        <el-form-item label="原分类号" prop="a208">
          <el-input v-model="form.a208" placeholder="请输入原分类号" />
        </el-form-item>
        <el-form-item label="起草单位" prop="a209">
          <el-input v-model="form.a209" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="截止日期" prop="a210">
          <el-input v-model="form.a210" placeholder="请输入截止日期" />
        </el-form-item>
        <el-form-item label="中文标准名称" prop="a298">
          <el-input v-model="form.a298" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="正文语种" prop="a300">
          <el-input v-model="form.a300" placeholder="请输入正文语种" />
        </el-form-item>
        <el-form-item label="原文标准名称" prop="a301">
          <el-input v-model="form.a301" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="英文标准名称" prop="a302">
          <el-input v-model="form.a302" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="出版单位" prop="a304">
          <el-input v-model="form.a304" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="稽核项" prop="a305">
          <el-input v-model="form.a305" placeholder="请输入稽核项" />
        </el-form-item>
        <el-form-item label="译文" prop="a309">
          <el-input v-model="form.a309" placeholder="请输入译文" />
        </el-form-item>
        <el-form-item label="价格" prop="a310">
          <el-input v-model="form.a310" placeholder="请输入价格" />
        </el-form-item>
        <el-form-item label="其他载体" prop="a311">
          <el-input v-model="form.a311" placeholder="请输入其他载体" />
        </el-form-item>
        <el-form-item label="中文文摘" prop="a330">
          <el-input v-model="form.a330" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="英文文摘" prop="a331">
          <el-input v-model="form.a331" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="英文主题词" prop="a390">
          <el-input v-model="form.a390" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="附注" prop="a409">
          <el-input v-model="form.a409" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="文献出处" prop="a448">
          <el-input v-model="form.a448" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="代替标准" prop="a461">
          <el-input v-model="form.a461" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="被代替标准" prop="a462">
          <el-input v-model="form.a462" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="引用文件" prop="a502">
          <el-input v-model="form.a502" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="相关法律" prop="a505">
          <el-input v-model="form.a505" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="一致性程度" prop="a800">
          <el-input v-model="form.a800" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="第二标准号" prop="a805">
          <el-input v-model="form.a805" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="前言" prop="a807">
          <el-input v-model="form.a807" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="引言" prop="a808">
          <el-input v-model="form.a808" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="修改件" prop="a820">
          <el-input v-model="form.a820" placeholder="请输入修改件" />
        </el-form-item>
        <el-form-item label="被修改件" prop="a821">
          <el-input v-model="form.a821" placeholder="请输入被修改件" />
        </el-form-item>
        <el-form-item label="补充件" prop="a823">
          <el-input v-model="form.a823" placeholder="请输入补充件" />
        </el-form-item>
        <el-form-item label="被补充件" prop="a824">
          <el-input v-model="form.a824" placeholder="请输入被补充件" />
        </el-form-item>
        <el-form-item label="中国标准分类号" prop="a825">
          <el-input v-model="form.a825" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="国际标准分类号" prop="a826">
          <el-input v-model="form.a826" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="中文主题词" prop="a835">
          <el-input v-model="form.a835" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="中文自由词" prop="a840">
          <el-input v-model="form.a840" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="原文主题词" prop="a837">
          <el-input v-model="form.a837" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="索取号" prop="a845">
          <el-input v-model="form.a845" placeholder="请输入索取号" />
        </el-form-item>
        <el-form-item label="馆藏标志" prop="a846">
          <el-input v-model="form.a846" placeholder="请输入馆藏标志" />
        </el-form-item>
        <el-form-item label="排序码" prop="a847">
          <el-input v-model="form.a847" placeholder="请输入排序码" />
        </el-form-item>
        <el-form-item label="标准类型" prop="a850">
          <el-input v-model="form.a850" placeholder="请输入标准类型" />
        </el-form-item>
        <el-form-item label="文献类型" prop="a860">
          <el-input v-model="form.a860" placeholder="请输入文献类型" />
        </el-form-item>
        <el-form-item label="卷期号" prop="a861">
          <el-input v-model="form.a861" placeholder="请输入卷期号" />
        </el-form-item>
        <el-form-item label="文献代号" prop="a863">
          <el-input v-model="form.a863" placeholder="请输入文献代号" />
        </el-form-item>
        <el-form-item label="出版周期" prop="a864">
          <el-input v-model="form.a864" placeholder="请输入出版周期" />
        </el-form-item>
        <el-form-item label="出版地" prop="a865">
          <el-input v-model="form.a865" placeholder="请输入出版地" />
        </el-form-item>
        <el-form-item label="密级" prop="a866">
          <el-input v-model="form.a866" placeholder="请输入密级" />
        </el-form-item>
        <el-form-item label="提出单位" prop="a870">
          <el-input v-model="form.a870" placeholder="请输入提出单位" />
        </el-form-item>
        <el-form-item label="归口单位" prop="a871">
          <el-input v-model="form.a871" placeholder="请输入归口单位" />
        </el-form-item>
        <el-form-item label="国别" prop="a885">
          <el-input v-model="form.a885" placeholder="请输入国别" />
        </el-form-item>
        <el-form-item label="标引依据" prop="a886">
          <el-input v-model="form.a886" placeholder="请输入标引依据" />
        </el-form-item>
        <el-form-item label="更新批号" prop="a890">
          <el-input v-model="form.a890" placeholder="请输入更新批号" />
        </el-form-item>
        <el-form-item label="标准历史" prop="a891">
          <el-input v-model="form.a891" placeholder="请输入标准历史" />
        </el-form-item>
        <el-form-item label="参建单位" prop="a892">
          <el-input v-model="form.a892" placeholder="请输入参建单位" />
        </el-form-item>
        <el-form-item label="电子文件名称" prop="a893">
          <el-input v-model="form.a893" placeholder="请输入电子文件名称" />
        </el-form-item>
        <el-form-item label="文件路径" prop="a894">
          <el-input v-model="form.a894" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="起草人" prop="a895">
          <el-input v-model="form.a895" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="预留字段1" prop="reserveA">
          <el-input v-model="form.reserveA" placeholder="请输入预留字段1" />
        </el-form-item>
        <el-form-item label="预留字段2" prop="reserveB">
          <el-input v-model="form.reserveB" placeholder="请输入预留字段2" />
        </el-form-item>
        <el-form-item label="预留字段3" prop="reserveC">
          <el-input v-model="form.reserveC" placeholder="请输入预留字段3" />
        </el-form-item>
        <el-form-item label="预留字段4" prop="reserveD">
          <el-input v-model="form.reserveD" placeholder="请输入预留字段4" />
        </el-form-item>
        <el-form-item label="预留字段5" prop="reserveE">
          <el-input v-model="form.reserveE" placeholder="请输入预留字段5" />
        </el-form-item>
        <el-form-item label="文件地址" prop="filePath">
          <el-input v-model="form.filePath" placeholder="请输入文件地址" />
        </el-form-item>
        <el-form-item label="${comment}" prop="tableName">
          <el-input v-model="form.tableName" placeholder="请输入${comment}" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listStandardNoes, getStandardNoes, delStandardNoes, addStandardNoes, updateStandardNoes } from "@/api/system/standardNoes";

export default {
  name: "StandardNoes",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // standardNoes表格数据
      standardNoesList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        a000: null,
        a001: null,
        a003: null,
        a010: null,
        a011: null,
        a100: null,
        a101: null,
        a102: null,
        a104: null,
        a103: null,
        a200: null,
        a203: null,
        a204: null,
        a205: null,
        a206: null,
        a207: null,
        a208: null,
        a209: null,
        a210: null,
        a298: null,
        a300: null,
        a301: null,
        a302: null,
        a304: null,
        a305: null,
        a309: null,
        a310: null,
        a311: null,
        a330: null,
        a331: null,
        a390: null,
        a409: null,
        a448: null,
        a461: null,
        a462: null,
        a502: null,
        a505: null,
        a800: null,
        a805: null,
        a807: null,
        a808: null,
        a820: null,
        a821: null,
        a823: null,
        a824: null,
        a825: null,
        a826: null,
        a835: null,
        a840: null,
        a837: null,
        a845: null,
        a846: null,
        a847: null,
        a850: null,
        a860: null,
        a861: null,
        a863: null,
        a864: null,
        a865: null,
        a866: null,
        a870: null,
        a871: null,
        a885: null,
        a886: null,
        a890: null,
        a891: null,
        a892: null,
        a893: null,
        a894: null,
        a895: null,
        reserveA: null,
        reserveB: null,
        reserveC: null,
        reserveD: null,
        reserveE: null,
        filePath: null,
        tableName: null
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询standardNoes列表 */
    getList() {
      this.loading = true;
      listStandardNoes(this.queryParams).then(response => {
        this.standardNoesList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        a000: null,
        a001: null,
        a003: null,
        a010: null,
        a011: null,
        a100: null,
        a101: null,
        a102: null,
        a104: null,
        a103: null,
        a200: null,
        a203: null,
        a204: null,
        a205: null,
        a206: null,
        a207: null,
        a208: null,
        a209: null,
        a210: null,
        a298: null,
        a300: null,
        a301: null,
        a302: null,
        a304: null,
        a305: null,
        a309: null,
        a310: null,
        a311: null,
        a330: null,
        a331: null,
        a390: null,
        a409: null,
        a448: null,
        a461: null,
        a462: null,
        a502: null,
        a505: null,
        a800: null,
        a805: null,
        a807: null,
        a808: null,
        a820: null,
        a821: null,
        a823: null,
        a824: null,
        a825: null,
        a826: null,
        a835: null,
        a840: null,
        a837: null,
        a845: null,
        a846: null,
        a847: null,
        a850: null,
        a860: null,
        a861: null,
        a863: null,
        a864: null,
        a865: null,
        a866: null,
        a870: null,
        a871: null,
        a885: null,
        a886: null,
        a890: null,
        a891: null,
        a892: null,
        a893: null,
        a894: null,
        a895: null,
        createTime: null,
        createBy: null,
        updateTime: null,
        updateBy: null,
        reserveA: null,
        reserveB: null,
        reserveC: null,
        reserveD: null,
        reserveE: null,
        filePath: null,
        tableName: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.id)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加standardNoes";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const id = row.id || this.ids
      getStandardNoes(id).then(response => {
        this.form = response.data;
        this.open = true;
        this.title = "修改standardNoes";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.id != null) {
            updateStandardNoes(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addStandardNoes(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal.confirm('是否确认删除standardNoes编号为"' + ids + '"的数据项？').then(function() {
        return delStandardNoes(ids);
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('system/standardNoes/export', {
        ...this.queryParams
      }, `standardNoes_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
